package com.dhsc.local.dao.impl.wskh;

import com.dhsc.domain.ywzx.wskh.WskhHdywVo;
import com.dhsc.local.dao.wskh.IWskhHdywDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("twskhhdywdao")
public class WskhHdywDaoImpl implements IWskhHdywDao{
	
	@Autowired
	private SqlSessionTemplate localSqlSessionTemplate;

	@Override
	public List<WskhHdywVo> queryWskhHdywByAll(WskhHdywVo y) {
		return localSqlSessionTemplate.selectList("WskhHdywMapper.queryWskhHdywByAll", y);
	}
	
	@Override
	public int insertWskhHdyw(WskhHdywVo f) {
		return localSqlSessionTemplate.insert("WskhHdywMapper.insertWskhHdyw", f);
	}

	@Override
	public int updateWskhHdyw(WskhHdywVo f) {
		return localSqlSessionTemplate.update("WskhHdywMapper.updateWskhHdyw", f);
	}

	@Override
	public int updateWskhClsm(WskhHdywVo y) {
		return localSqlSessionTemplate.update("WskhHdywMapper.updateWskhClsm", y);
	}
}